﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using jmetal.experiments;

namespace Client
{
    class Program
    {
        static void Main(string[] args)
        {
            string problem = "LOTZ";
            string algorithm = "NSGAII";


            OutputHelper.OutputHelper.Instance.Algorithm = algorithm;
            OutputHelper.OutputHelper.Instance.Problem = problem;
            OutputHelper.OutputHelper.Instance.SetCurrentDir();
            main.Main(new [] { algorithm, problem });


            //DirectoryInfo di = new DirectoryInfo(OutputHelper.OutputHelper.Instance.CurrentDir);    
            //var firstFile = di.GetFiles().OrderByDescending(d => d.FullName).First().FullName;
            //var lastFile = di.GetFiles().OrderByDescending(d => d.FullName).Last().FullName;
            //ExcelGraphDrawer.ExcelHelper.DrawGraph(firstFile, lastFile);
            Console.ReadKey();
        }
    }
}
